Skip to content

fix: stage the entrypoint manifest on the builtin Dang runtime - #88

Merged
eunomie merged 1 commit into
mainfrom
item-a-python-ffda5c50
Nov 10, 2026
Merged

eunomie merged 1 commit into
mainfrom
item-a-python-ffda5c50

Conversation

@eunomie

@eunomie eunomie commented Nov 10, 2026

Copy link
Copy Markdown
Member

Staging a static entrypoint manifest added the builtin Python runtime, which the engine loads eagerly (codegen generate-module plus a Go build) for a source whose paths are only read. Stage it on the builtin Dang runtime instead, which loads with no build. The engine refuses a manifest with neither entrypoint nor runtime, so a runtime is still needed.

Expected saving: 9-14 s on a cold engine (-8.9 s local, -14.4 s cloud), from trace analysis of python-sdk/generate/stale on typesafe-ai/daggerverse@44d53ca7. Not measured end to end: the patched run was warm, and only confirmed that the legacy runtime interface: python spans and the generate-module --module-name python-sdk exec are gone, with the stale check passing (41.1 s patched vs 45.7 s upstream, both warm).

Checks on engine v1.0.0-beta.25: entrypoint-manifest-check, static-scope-init-check, static-types-load-check, linked-entrypoint-config-check, generate-scope-init-check pass. entrypoint-client-call-check fails, identically on upstream/main.

Rendering a static entrypoint loads the module source of a staged
manifest. With no runtime of its own, staging added the builtin Python
runtime, and the engine loads that SDK eagerly: it runs codegen
generate-module and builds the Go module, for a source the build reads
only the paths of.

The engine refuses a manifest with neither entrypoint nor runtime, so
stage it on the builtin Dang runtime, which loads with no build.

The saving, 9 to 14 s on a cold engine (-8.9 s local, -14.4 s cloud),
comes from trace analysis of the unmodified build. The patched build
ran on a warm engine and was only checked for the absence of the
python runtime spans and of the python-sdk generate-module exec.

entrypoint-manifest-check passes, and so do static-scope-init-check,
static-types-load-check, linked-entrypoint-config-check and
generate-scope-init-check. entrypoint-client-call-check fails, and
fails identically on upstream/main on engine v1.0.0-beta.25.

Signed-off-by: Yves Brissaud <yves@dagger.io>
@eunomie
eunomie force-pushed the item-a-python-ffda5c50 branch from cfe432f to 76310b0 Compare November 10, 2026 14:12
@eunomie
eunomie marked this pull request as ready for review November 10, 2026 14:26
@eunomie
eunomie merged commit 34b2344 into main Nov 10, 2026
68 checks passed
@eunomie
eunomie deleted the item-a-python-ffda5c50 branch November 10, 2026 14:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant